package cn.csc.module.pay.controller.app.order.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Map;

@ApiModel("用户 APP - 外部支付订单提交 Request VO")
@Data
public class AppPayOrderOuterSubmitReqVO {

    /**
     * 商户订单编号
     */
    @ApiModelProperty(value = "商户订单编号", required = true, example = "csc202418918941")
    @NotEmpty(message = "商户订单编号不能为空")
    private String merchantOrderId;

    @ApiModelProperty(value = "支付渠道", required = true, example = "wx_pub")
    @NotEmpty(message = "支付渠道不能为空")
    private String channelCode;

    @ApiModelProperty(value = "支付渠道的额外参数，例如说，微信公众号需要传递 openid 参数", required = true, dataType = "java.util.Map", example = "{\"openId\":\"oD3in5A_Mi9t8FFqjRiJTLRAN3G4\"}")
    private Map<String, String> channelExtras;

    // 参见 {@link PayDisplayModeEnum} 枚举。如果不传递，则每个支付渠道使用默认的方式
    @ApiModelProperty(value = "展示模式", example = "url")
    private String displayMode;

    @ApiModelProperty(value = "用户IP", example = "12.123.12.23")
    @NotEmpty(message = "用户IP不能为空")
    private String userIp;

}
